﻿
using System;

namespace QLab.Controllers.SolutionExplorer
{
  public class SolutionExplorerItemImage
  {

    public static string ImageSourcePath(SolutionExplorerItemType ItemType)
    {
      const string res_path = "/QLab;component/Images/{0}_16.png";
      switch (ItemType)
      {
        case SolutionExplorerItemType.Solution:
          return String.Format(res_path, "solution");
        case SolutionExplorerItemType.Project:
          return String.Format(res_path, "project");
        case SolutionExplorerItemType.Folder:
          return String.Format(res_path, "folder_closed");
        case SolutionExplorerItemType.Q_File:
          return String.Format(res_path, "file_ql");

        default:
          return "";
      }
    }

  }
}
